using UnityEngine;
using System.Collections;

public class Follower : MonoBehaviour {


    private Transform target;

    private Vector3 relativePosition = Vector3.zero;

	// Use this for initialization
	void Start () {
     
        this.target = Player.GetInstance().Ball.transform;;
        
	}
	
	// Update is called once per frame
	void Update () {
        relativePosition = target.position;
     //   relativePosition.y = this.distance;


        this.transform.position = relativePosition;
	}
}
